package com.csthink.auditlog.domain;

import org.springframework.context.ApplicationEvent;

/**
 * Publish this AuditLogEvent to Spring ApplicationContext, so we can handle
 * it async.
 *
 * @author <a href="mailto:security.2009@live.cn">Mars</a>
 * @since 2023-09-12
 */
public class AuditLogEvent extends ApplicationEvent {

    public AuditLogEvent(AuditLog log) {
        super(log);
    }

    public AuditLog getSource() {
        return (AuditLog) super.getSource();
    }
}
